package com.snow.datasource.strategy;

import com.snow.datasource.properties.SnowFlakeProperties;
import com.snow.datasource.strategy.annoation.Strategy;
import com.snow.datasource.strategy.enums.HandleStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * 雪花策略
 *
 * @Description
 * @Author fanxl 315620726@qq.com
 * @Date 2020/12/16
 **/
@Strategy(value = HandleStrategy.SNOW_FLAKE)
public class SnowFlakeStrategy implements IStrategy, BeanPostProcessor {

    @Autowired
    private SnowFlakeProperties snowFlakeProperties;


    @Override
    public String getDataBaseKey() {
        return null;
    }

    @Override
    public String getSlaveKey() {
        return null;
    }
}
